package com.lantosec.hmrp.modules.supplier.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.supplier.entity.SupplierBad;
import com.lantosec.hmrp.modules.supplier.vo.SupplierBadVO;

import java.util.List;

/**
 * <p>
 * 供应商不良记录 服务类
 * </p>
 *
 * @author AutoCode
 * @since 2020-02-21
 */
public interface ISupplierBadService extends IService<SupplierBad> {

    /**
     * 根据条件查询供应商不良记录
     * @param page
     * @param supplierCode
     * @param badType
     * @param startTime
     * @param endTime
     * @return
     */
    public PageVO<SupplierBadVO> querySupplierBad(PageVO<SupplierBadVO> page, String supplierCode, String badType, String startTime, String endTime);

    /**
     * 新增不良记录数据
     * @param vo
     */
    String insertSupplierBad(SupplierBadVO vo);

    /**
     * 处置不良记录
     * @param voList
     */
    void managementSupplierBad(List<SupplierBadVO> voList);

    /**
     * 取消供应商的暂停采购
     * @param vo
     */
    void cancelSupplierPurchase(SupplierBadVO vo);

}
